<html {$html_attrs}>
<head>
<title>{$caption companies}</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
<style>
.grid_block {  
margin-top:5px;
border-collapse: collapse;
align:center;
width:95%;
border:none;
} 
.grid_block td { 
 padding: 5px; 
 margin: 0px; 
 border: solid black 1px;
}
.grid_block .gridspacing {width:20px;border-top-color:white; border-bottom-color:white;background-color:white}
@media print 
{
	a.pdf {display:none}
}
.printpage {page-break-after:always}
#selpage{margin-left:30px;}
</style> 
</head>
<body style="background-color:white">
{BEGIN body}
{$header}
{BEGIN page}

<h1>{$caption companies}</h1>
{BEGIN page_number}
<div id='selpage'>{mlang_message PAGE1} {$pageno} {mlang_message PAGE2} {$maxpages} </div>
{END page_number}
{BEGIN pdf_block}
{BEGIN pdflink_block}
<a href=# class=pdf {$pdflink_attrs}>{mlang_message PDF_VIEW}</a>
{END pdflink_block}
{END pdf_block}

{BEGIN grid_block}

<table align="center" cellpadding=5 class="grid_block">
{BEGIN grid_header}
<tr>
{BEGIN record_header}
{BEGIN id_fieldheadercolumn}
	<td>
{BEGIN id_fieldheader}
	<b>{$label companies id}</b>
{END id_fieldheader}
	</td>
{END id_fieldheadercolumn}
{BEGIN code_fieldheadercolumn}
	<td>
{BEGIN code_fieldheader}
	<b>{$label companies code}</b>
{END code_fieldheader}
	</td>
{END code_fieldheadercolumn}
{BEGIN company_name_fieldheadercolumn}
	<td>
{BEGIN company_name_fieldheader}
	<b>{$label companies company_name}</b>
{END company_name_fieldheader}
	</td>
{END company_name_fieldheadercolumn}
{BEGIN category_fieldheadercolumn}
	<td>
{BEGIN category_fieldheader}
	<b>{$label companies category}</b>
{END category_fieldheader}
	</td>
{END category_fieldheadercolumn}
{BEGIN endrecordheader_block}
	<td class="gridspacing">&nbsp;</td>
{END endrecordheader_block}
{END record_header}
</tr>
{END grid_header}
{BEGIN grid_row}
<tr valign=top {$rowstyle} {$rowattrs}>
{BEGIN grid_record}
{BEGIN id_fieldcolumn}
<td {$id_style}>
{$id_value}
</td>
{END id_fieldcolumn}
{BEGIN code_fieldcolumn}
<td {$code_style}>
{$code_value}
</td>
{END code_fieldcolumn}
{BEGIN company_name_fieldcolumn}
<td {$company_name_style}>
{$company_name_value}
</td>
{END company_name_fieldcolumn}
{BEGIN category_fieldcolumn}
<td {$category_style}>
{$category_value}
</td>
{END category_fieldcolumn}
{BEGIN endrecord_block}
<td class="gridspacing">&nbsp;</td>
{END endrecord_block}
{END grid_record}
</tr>
{END grid_row}
<!-- totals row -->
</table>
{END grid_block}
{END page}
{$footer}
{END body}
</body>
</html>